North Korea has it's own Interests. Staying in power. China is just a parent by spoiling it at times. China can only restrain N. Korea, until N. Korea threatens to unleash a refugee crowd to the Chinese border.
In the end its more of an appeasement policy by China. An attempt to keep some sort of peace at their shared border.
Im from PakiLand, so dont play the anti China card on me.