Add the walletlock RPC method to lock the wallet manually.