ctdbd: Use talloc_memdup where appropriate