Rule trigger speed issue, missing status updates

As soon as I enter the line

include java.util.concurrent.locks.ReentrantLock

as was mentioned here: Explain lock() command? by @rlkoshak my rules file does not compile anymore. I’m not known with including java packages inside openhab rule definition files. Am I overlooking something?