First pass at Locks problem.

Only getting partial completion at this point; buggy.