[Reviewer: Mike] Use PJSIP group locks (fixes #112)

Mike, please can you review my fix to make sprout use PJSIP group locks correctly.  This should fix #112.  I've run the UT and live tests and also run an overnight test run under valgrind with the only remaining issue being #111, which I think you're looking at.