Added Mutexes to back end. Still crashing though, maybe
it's a problem with the front end?

Signed-off-by:  Chris