Indeed. How does China benefit from North Korea's bluster?
ANSWER that question, and you have solved the puzzle.
It would be in their best interest to keep North Korea quiet and intact, a menace that never quite materializes, and one that draws the attention away from them.
Sadly, North Korea doesn't give a hoot about China's geopolitical aspirations. They care about their own survival. Only the United States can give them what they need. China and Russia don't have the money or political will to help North Korea, and are only useful in procuring weapons anymore.