[PATCH 6.17 196/371] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()