[PATCH 6.12 121/277] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()