Support Pathlike for zipfile serialization (#40723)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40723
Test Plan: Imported from OSS
Differential Revision: D22294575
Pulled By: jamesr66a
fbshipit-source-id: b157fa0ab02c4eb22cb99ac870942aeab352b0c5