Adjusted declaration order for C89 compilers

PYCURL_DECLARE_THREAD_STATE looks like an executable statement for some non-C99 compilers (e.g. armcc), so it must appear at the end of the declaration list.