BUG-6972: Do not allow root StmtContext to be copied