Added a mutex protecting execution of MPD commands.

I needed to access MPD from a threaded application. As the MPDClient class was not thread safe I had to make minor changes. Maybe they are useful for others.