Carlisle have confirmed the signing of Wigan defender Jordan Mustoe on loan until the end of the season.