sql: Log statements to event log earlier
sql: Log statements to event log earlier

This ensures that all statements get logged, particularly COMMIT and
ROLLBACK, which were handled with an early return before the previous
location of the logging statement.

paperstreet/cockroach,petermattis/cockroach,paperstreet/cockroach,maxlang/cockroach,maxlang/cockroach,cockroachdb/cockroach,maxlang/cockroach,maxlang/cockroach,petermattis/cockroach,glycerine/cockroach,vaibhavarora/cockroach,vaibhavarora/cockroach,maxlang/cockroach,cockroachdb/cockroach,glycerine/cockroach,petermattis/cockroach,veteranlu/cockroach,vaibhavarora/cockroach,glycerine/cockroach,veteranlu/cockroach,cockroachdb/cockroach,paperstreet/cockroach,vaibhavarora/cockroach,petermattis/cockroach,vaibhavarora/cockroach,maxlang/cockroach,veteranlu/cockroach,glycerine/cockroach,paperstreet/cockroach,petermattis/cockroach,vaibhavarora/cockroach,veteranlu/cockroach,vaibhavarora/cockroach,vaibhavarora/cockroach,paperstreet/cockroach,veteranlu/cockroach,veteranlu/cockroach,veteranlu/cockroach,veteranlu/cockroach,petermattis/cockroach,cockroachdb/cockroach,glycerine/cockroach,maxlang/cockroach,maxlang/cockroach,petermattis/cockroach,glycerine/cockroach,glycerine/cockroach,cockroachdb/cockroach,paperstreet/cockroach,cockroachdb/cockroach,cockroachdb/cockroach,glycerine/cockroach,paperstreet/cockroach,petermattis/cockroach,cockroachdb/cockroach,paperstreet/cockroach