Ryan Lochte swam the second fastest time of the year to beat Michael Phelps in the 100m butterfly