Odd frequency pairing in a quantum critical metal