[profiler] Emit statistical samples at 1 second intervals and fix race condition.
[profiler] In mprof-report fix handling of the time filter when starting from 0 (xambug #11904).