Fix sync problem in loopback

/cc @altsang this should fix the problem you were experiencing
/cc @ritch FYI. If you find any issues, I'll address them in a new PR.