Do not clear cache when no uri for stream

A stream may not have an uri in it's metadata, for example when using proc_open with pipes, the read pipe does not have an uri.

This should not be a problem for stats has php does not cache the stats when the file does not exists.