SyncTime works

Added a lock to avoid concurrent async_connect calls.