Added with_lock_guard example.