app: cancel the active tool before going brightness/contrast->levels->curves

because changing tools now automatically commits the old tool.