Maverick anti-coup campaigner released by Thai court