staging/lustre: use kmemdup rather than duplicating its implementation