Factor out some common code introduced in r1079070.
Factor out some common code introduced in r1079070.

* subversion/libsvn_subr/sqlite.c
  (reset_all_statements): New.
  (with_transaction, svn_sqlite__with_lock): Use the above.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion