src/io/{source,sink}.c: fix del_ prototypes
src/io/sink*: add _close function, improve error messages
src/io/source*: add _close function
python/ext/py-{source,sink}.c: use _close in .close()