make it possible to disable implicit join references.

Closes #9712.

The feature can be disabled completely.

```ruby
# in your configuration
config.active_record.disable_implicit_join_references = true

# or directly
ActiveRecord::Base.disable_implicit_join_references = true
```