fix include
Serialize all backend pool lookups.

This helps us avoid race conditions on multiple concurrent requests
trying to access the same app.