Fixed typos in lock management; added "clock" event for modules