The reason this was added was because we need to be able to lock each wallet individually. The RPC methods shouldn't have to be keeping track of which wallets are sleeping, so the options seem to be to either move all that to within the CCryptoKeyStore class itself - or to write a helper class that manages this.