Avoid lock inversion when handling the timeout queue in the presence of
a timeout callback. This may cause a deadlock.
Update notes for event deadlock patch.