Add more scenarios checking for deadlocks pseudo-protected from
gatelocks in parent threads.