Barry Pinches produced a wonderful display to come back from the brink to beat Joshua Thomond at the death.