move unnecessary global variables ordinates_tdo, ordinates into the only function where they were used
Add OCI_THREADED to OciEnvCreate flags and fix some warning
set OCI_THREADED only when mapserver is built with USE_THREADS
Merge pull request #4729 from unicolet/oraclespatial-removeglobals

Move unnecessary global variables ordinates_tdo, ordinates into the only function where they were used.
Add OCI_THREADED option to OciEnvCreate flags when mapserver is built with USE_THREAD and fix compile time warnings.