You can create a class that inherit from EntityCollectionBase. Then you can make your classes derive from your new EntityCollectionBaseCustom. There you can put your customization (set the flag on the OnInitialize method). You can modify your templates to make you entities inherit from the new collectionBase.
You also can download the sourceCode and make your little custom changes to the ORM code.