Added a statistc logging function that will keep track of unlocks and locks and who did them.