Make TimeCorrectionManager operations thread-safe.

Currently there is a possibility that an error is thrown when the
background load operation resets data at the correct time.
Add Handle == Zero check.
Merge pull request #313 from toggl/roosmaa-bugfixes

Simple bugfixes