If after investigation you will still think that there is some room for Wine bug here, it would probably be easier if you'd elaborate a bit on the actual issue, what the app is trying to do, which setup leads to it. As it doesn't look like Wine sets O_NONBLOCK for files which are read in a way your patch concerns.