[sr-dev] git:master:23f16631: misctest: Add lock_test function and rpc