Visual detection is locked to the internal dynamics of cortico-motor control