app: halt the transform tool when switching layer|selection|path transform

(cherry picked from commit 1335bc42c89c7b739bba54400b6adcee3abd7423)