Synchronize a Node.js async call while blocking