Added tests for if condition in Active Model callbacks
Merge pull request #10284 from neerajdotname/missing-active-model-tests

Added tests for if condition in Active Model callbacks
Created a registry based on the +PerThreadRegistry+ module for
subscriber queues. Helps limit the number of thread locals.