PJ: delete code for the hardware lock.
PJ: delete test directory.