Disable local gear only after a remote gear is UP or there is a timeout.

Fix for Bug 969007