Critic of Ugandan president released on bail