Sync is now part of the standard library

Tests fail for some reason, but that shouldn't be related to these changes.