Allow `joins` to be unscoped

Closes https://github.com/rails/rails/issues/13775