[PATCH 5.15 249/530] locks: fix TOCTOU race when granting write lease