Scotland's Hamish Stewart is one match away from a place in the Wimbledon men's singles after coming through a nail-biting deciding tiebreak at Roehampton.