Baryons from quarks in curved space and deconfinement