Fix race condition resulting in a crash when the MSTicker's time_func is updated…

Closed Simon Morlat requested to merge fix/ticker_time_func_race_condition into master

Fix race condition resulting in a crash when the MSTicker's time_func is updated from a thread which is not the ticker's thread.

Merge request reports