Merge pull request #4372 from aldelaro5/fix-scheduleEvent-assert Fix a schedule event assert on ClearCacheThreadSafe