Executes action on the current value while holding the Mutex and returns the result.
the result of action
optional owner for the mutex lock
the action to execute with the current value as receiver
the return type