Fix SEGFAULT when EXPLAIN ONLY

PostgreSQL calls ldapEndForeignScan when doing an EXPLAIN (NOT ANALYZE)
But this cause a segfault because some ressources are freed but unitialized.
Add regression test for EXPLAIN ONLY
Merge pull request #12 from klando/for_guedes

ldap_fdw segfaults with EXPLAIN ONLY