Warn about using `return` inside inline callback blocks [ci skip]

Closes #12981