Rule Number one when trying to understand China- they are the foremost exponents of Sun Tzu’s strategy of deception. Only an idiot would think that North Korea would piss them off.
However, China's leash, according to our own diplomatic corps, isn't on NK that tight.