Fixed wrong lock ordering when delivering deferred notifications.
Added helgrind annotations to avoid reporting of a false positive data
race.
Added some annotations for DRD.