Super Phelps beats rival Lochte to win 22nd gold