sid: Use pthread mutexes and remove some XMMS compatibility #ifdefs.