powerpc/pseries: use kmemdup rather than duplicating its implementation