add improved implementation of select, which kills all goroutines waiting to open files, as soon as one succeeds