FIX build with GIL-releasing SGD