Even if you make that, it will not make sure that after the checking it is still the leader. 
You need a lock to make checking and get term is atomic.