jthread remove locks that aren't absolutely required
add c++11 atomic support (optional)