[boost] [thread] shouldn't at_thread_exit work on the main thread?