Protects access to the given value by wrapping it in this class and only exposing it via the access function, which will only be executed in a context where the internal Mutex is locked.