dep11: Use apt_inst exclusively and help dak to close open files

Avoids a crash when processing multiple files