Fix the deadlock in resume function
Merge pull request #32 from ECNU3D/pyocd-improvements

[gdb server] Fix the deadlock in resume function