Optimize sync_callback() slightly.
Optimize sync_callback() slightly.

Avoid a redundant trip through the EM event loop when registering the
callback. This could be optimized further to avoid entering the EM event loop to
register the shutdown callback.

bloom-lang/bud