Add mutex safe debug modes

- Debug mode 10: Mutex safe mode 9
- Debug mode 11: Pipe Handler