converted some .inl files to .cc files

added synchronization to make be::Id threadsafe when BE_ID_NAMES_ENABLED
is defined.
added implementation for deferred entity loading