The Global Form of Flavor Symmetries and 2-Group Symmetries in 5d SCFTs