Issue #2222005 by justafish, k.sorokin: Fixed Infinite loop in open directory handler | AmazonS3StreamWrapper::dir_opendir.