Add scan_for_locks prior to connecting