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