fix a "Time of check to time of use" vulnerability and mpd random state some times not in sync with mpd server