Fixed a deadlock in debugger-libs