Some Desktop Environments allow users to suspend the computer after x minutes of "inactivity".
While this is a nice feature for power management, it requires the applications to report activity or disable suspend in a way or another.
I think the best way to implement that in the mpd ecosystem would be as an option in the sonata client, that should prevent the computer to suspend when a track is playing.