Monkey patch for mongoose then to execute on same tick