Release the GIL in a few more places