Fix possible bug when stopping thread.

Compiler has to be aware about field '_started' volatility.