Currently a re-entrant read-write lock is used for returning read only copies of the active memtables when using them in places like memtable to SSTable conversion. The current mechanism does not actually prevent multi-threading issues and hence has to be properly understood and re-implemented.