gpu: add functions for adding/detecting synchronization nodes in schedule tree