Is it just me or is the example they use for the locking extremely badly implemented?
Why would one ever result at that methodology?