Honoring timeout for sync operations.
Fix tests to be faster.