meson: Respect ldap option

Only build LDAP provider if requested.

Also fix configuration failure if openldap is not installed:
tools/meson.build:149:0: ERROR: Unknown variable "libldap_provider".
4 jobs for ldap in 19 minutes and 14 seconds (queued for 1 second)