Fix ReactorStmtCtx.calculateParentRefcount()