Fixed _markedCache keynotfountexception with locking.