Fix race condition where a transaction requests children to prepare before one or more chidren are done cancelling.

This scenario occurs when a child is requested to cancel and, before child is done cancelling, transaction is requested to prepare. This scenario can result in several abnormalities, such as the rolling back transaction attempting to create other tasks or to cancel other tasks, both invalid operations.
cancellation requests (