[PATCH 5.4 151/224] btrfs: avoid potential out-of-bounds in btrfs_encode_fh()