Transaction depth is already tracked in the thread.

This fixes an intermittent issue when running under heavy multithreaded load.