Fix with-transaction macro to return results.