Implement ResourceInputStream::clone