Allow a custom mutex to be used for sensitive operations.