Synchronizing async calls in nodejs (generators + yield)