Git.pm: revert _temp_cache use of temp_is_locked