Do typeinfo's m_flags manipulation in more atomic way.