add _M_add_ref_lock support