Added locks support to modules LogicalRules