client map flush impl.
client map lock and thread local context implementation