Manchester United centre-half Tom Thorpe has returned to Birmingham City on an emergency loan until the end of the season.