a765746 pylint: fix not-context-manager false positives

Authored and Committed by stlaz 6 years ago
    pylint: fix not-context-manager false positives
    
    threading.Lock() in ipa-replica-conncheck is an alias to
    thread.allocate_lock() which creates a LockType object.
    This object is an actual context manager but the alias
    seems to confuse pylint a bit.
    
    https://pagure.io/freeipa/issue/6874
    
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>