Autogen: Restore mocs_compilation in OBJECT libraries
Since !5507 (merged) we collect all sources for a target earlier than previously. Clear the sources cache so that it will be re-computed later after AUTOGEN processing.
Fixes: #22085 (closed)
Backport: release