Add support of lock_guard.