memkv: safe for concurrent usage