Switch to using Pool#map()

The previous approach was risky and could cause thrashing. This
should perform much better. The lock on ideviceinstaller is no
longer necessary.