added a forth lock to the locking code

added a forth lock to the locking code. This is a commit before the
first test