Issue #2770761 by claudiu.cristea, mondrake: Derivatives should not be created on read-only stream wrappers