Tom Thorpe re-signs for Birmingham on loan until the end of the season