ANKARA--Turkish President Recep Tayyip Erdogan, who has ruled his country with an increasingly firm grip for 20 years, was locked in a tight election race early Monday, with a make-or-break runoff against his chief challenger possible as the final votes were counted.