OFThread: Set status before spawning thread.

This way, it's not possible to set the status after the thread has
already set it, though this should only happen if the thread instantly
terminates.