[Python-checkins] bpo-18819: tarfile: only set device fields for device files (GH-18080)