Thai court orders release after Bahrain dropped extradition request, says prosecutor working on the case.