add map_header_lock to serialize access to map_header_in_use

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
minimize criterial section

Signed-off-by: xinxin shu <xinxin.shu@intel.com>