[PATCH 5.10.y] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()