fix deadlock in sighandler