[DROOLS-7] synchronize linking and unlinking of a rule in PathMemory