Fix a potential lock-order-inversion in tcp listening code

66 jobs for !2737 with 1469-lock-order-inversion-tcp-listening in 12 minutes and 32 seconds (queued for 5 seconds)
merge request