forked from MeloNX/MeloNX
* Add missing check for thread termination on ArbitrateLock * Use TerminationRequested in all places where it can be used
* Add missing check for thread termination on ArbitrateLock * Use TerminationRequested in all places where it can be used