[XFRM]: Use kmemdup where appropriate