added mutex lock to logging actions which were previosly missed.