[ASIO] Synchronize session's transport.

For super thread-safety, synchronize session's transport pointer. IT
might be a better idea to use atomic pointer operations there, but those
are not available on GCC 4.6 yet.