Initial changeset to support get-and-lock and unlock.

Get and lock works as expected, but unlock hangs.