Refactor out "thread safety".

Silly to do in RT-threads.