Extract mutex handle logic to a method
Support specify multiple mutexes to ensure exclusivity