Fix pack file backend
Add PackBackendSafeHandle class