Test for non-blocking opendir.