core: Use lockfree os:timestamp() instead of erlang:now()