class time_collector::time_collector_lock field has to be marked as mutable. And in 5.7 fixed by removing atomic operation fallbacks.
class time_collector: :time_collector _lock field has to be marked as mutable. And in 5.7 fixed by removing atomic operation fallbacks.