Galaxy gas as obscurer - I. GRBs x-ray galaxies and find an NH^3 propto M_{star} relation