Fix for coverity (missed mutex free)