The ADS_UF_LOCKOUT flag is unreliable, don't use it