Delayed-choice causal order and nonclassical correlations