[api] fix start/stop handling of searchd