Avoid locking between threads that run the io_service