Add a warning with nogil=True when function is compiled in object mode