Galaxy gas as obscurer: I. GRBs x-ray galaxies and find a N_H ~ M* relation