Support calls to `stream_metadata` from functions like `touch`

Adds an initial implementation of `stream_metadata` to the stream wrapper class to support `touch`.