CAS-1343 Fix LDAP resource leak in ContextSourceMonitor

Close the DirContext created in the monitor status check to prevent leaking connections.