MDL-52781 core_user: improve core_user::fill_properties_cache()