* makes the mutex for the gpa configurable * fixed logic, added test * updates docstring; pushes logic to one place, better duck-type
* makes the mutex for the gpa configurable * fixed logic, added test * updates docstring; pushes logic to one place, better duck-type