Scheduling closed nested transactions