[linux-pam] Fix gratuitous use of strdup and x_strdup