Share code from lib/async.js instead of inlining nextTick in Memory provider