Check for EPERM as well as EACCESS on trying to lock in oauth2