Namecoin: check if wallet is locked before name_* rpc calls