Replace last process.nextTick with setImmediate

Fixes #28