pool: add helpers for pool idleness
Merge remote-tracking branch 'upstream/master'