pseudofs: make dup name an error instead of panic
(cherry picked from commit e9897199576a40360440aa4d2aa48d61c4010f11)