This fixes a long standing issue, where the kernel does flushing of file streams, although it should not handle such streams at all.
intr
pthread_mutex_take