[PATCH openEuler-5.10 07/14] locks: Fix UBSAN undefined behaviour in flock64_to_posix_lock