Use synchronization when awaiting events.

Should fix https://github.com/square/okhttp/issues/616