cgns: Add without-hdf5 option

I couldn't update https://github.com/Homebrew/homebrew-science/pull/303 directly (the branch was lost). This is based on the latest formula.