[PATCH 3/5] mfreadwrite: Add a helper to get stream identifier.