[Debugger] Use a separate mutex lock for toggling breakpoints

Hopefully fixes bug #7143