add timeout to service_discovery.spec_index_from_service

I'm using this in the app manager and are currently forced to add an extra timeout (wait_for_service).

Would be nicer (and cleaner?), if this would be handled by service_discovery.