ioservice with multiple threads

Guard == lock_guard<mutex> and used consistently over the project.