Improve notifier scheduling to use a trampoline and don't unnecessarily wait for a next tick