Avoid sending signals that trigger tasks when inside the atomic block (bug 920081)