userpref: Fix memory leak in userpref_device_record_get_certs_as_pem()