p11_child: split common and NSS code into separate files
To avoid code duplication when adding support for OpenSSL the common
code is move into a separate file.
Related to https://pagure.io/SSSD/sssd/issue/3489
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>