Margate have signed Mansfield Town defensive midfielder Jamie Hand on loan for the rest of the season.