Require time before monkey-patching it

Same as #12710 but for the time module this time. This time should fix
the Active Model test suite in isolation avoiding a TypeError about the
superclass of the DateTime object.