[PATCH 5.15 175/276] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()