Move set_inverse_instance to association.build_record

[fixes #10371]
Merge pull request #12413 from arthurnn/inverse_of_on_build

Inverse of on build