An extradition treaty is just a formalized process for extradition, it doesn’t prevent countries from extraditing someone when they want to. China doesn’t extradite Chinese nationals as a matter of principle, but they’ll extradite other people to the US if it’s politically expedient.