Fixed #16731 -- Made pattern lookups work properly with F() expressions

See https://code.djangoproject.com/ticket/16731#comment:11
It's already explained here https://github.com/django/django/blob/master/django/db/backends/oracle/base.py#L665, I just reused the existing mechanism to initialize pattern_ops too.