MOVEONLY: Separate CKeyStore interface from its basic implementation
Move CCriticalSection cs_KeyStore up from CKeyStore to CBasicKeyStore
(also cleanup some dependencies)