Fix the nextTick(cb) causing event loop starvation

If you run more than 1000 lookups (like processing a big directory of
files), you will get lots of warnings from node.  Solution is to use
setImmediate(cb) instead.
Merge pull request #164 from TomV/fix-io-starving-problem

Fix the nextTick(cb) causing event loop starvation