Saves a few cycles by only testing the count validity once, and never for the common case where the mutex was not recursively locked.