Add synchronized block similar to the regular grails cache plugin