new lock algorithm with state and congestion count in one atomic int