[boost] [thread] Why the at_thread_exit cleanup function be const?