Mutex guard for counter updates
Mutex guard for counter updates

Had cases of it going negative. I think this might be also due to events
not getting back, but first lets see if this helps.

drbig/mpdqueue,drbig/mpdqueue,drbig/mpdqueue