Refactor GIL release/acquisition for 'consume_fasta' wrapper to handle an exceptional condition properly.