Not save job definition attributes when stop_writing_builds_metadata enabled

Summary

As a follow-up from #551860 (closed) and !200790 (comment 2684147167), we should implement to stop writing to builds metadata when stop_writing_builds_metadata is enabled.

We need to remove attributes that would eventually end up in ci_buidls_metadata (e.g. during pipeline creation).

Edited by Fabio Pitino