Create lock_example.cpp