Double mutex locking

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>