So is it true that it's illegal for a foreigner to own/ ride a motorcycle in China?
No.
Some cities it's illegal for anyone to ride a motorcycle though, Tianjin included. Having said that I used to have one. Rode around on it for about two years then sold it. That should tell you how strictly bylaws are enforced here.