bb#10988 - fixed stats overwrite on settings transfer
stats: fixed issue with mutex unlocking