refactor stdio open file list handling, move it out of global libc struct