Replaced lock_guard with simple mutex locks in Timer