Old values remain for compatibility. As suggested in https://github.com/espressif/esp-idf/issues/2567
Saves a few cycles by only testing the count validity once, and never for the common case where the mutex was not recursively locked.