Implement timeout for anonymous ApiClient objects.

Refs #6107