move __loc_is_allocated declaration to locale_impl.h