Added previous homework implementation of various locks and locking protocols