avoid I/O deadlocks between DT and GDB in SIGSEGV handler
(cherry picked from commit 2f1a9a36f7d1bc00b82b2066e78898d170c425b6)