Python: stub out python GIL calls if no thread support
This resolves linking errors when doing static cross-compile builds against python with no thread support.
A Gitlab security update will be applied on March 29th, between 8am and 10am, EST (UTC-05:00). This site may have intermittent delays during that time.
This resolves linking errors when doing static cross-compile builds against python with no thread support.