fix jobqueue deadlock bug