Add back yaml_initialize hook to AR::Core for Syck deserialization support

Forgot to retarget #13722 to 4-0-stable and the signature of the method was off. 

This adds back the ActiveRecord::Core#yaml_initialize to support proper deserialization of yaml objects with the Syck engine with a deprecation warning.

/cc @arthurnn