[PATCH 5.10 231/332] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()