SCUBA2: restore correct WCS to thresholded file if necessary

Copybad trims pixel axes from the target file if they're not present
in the template. In the case where the 2-d exposure time image is to
be used for thresholding, the 3rd pixel axis must be added and the
original WCS copied over from the input file.