Copy callback_sync.[ch] from cgocallbacksync