[fix] Memory adapter uses process.nextTick so that callbacks act asynchronously