Fix fd leak if /dev/urandom can be opened but not read.