JAVA-853: Properly handling nested calls to DB.requestStart/requestDone by keeping tracking of the nesting depth,
    and only removing the thread local when the depth returns to 0