Bug 970895: Use I/O loop for polling memory-pressure events, r=dhylands

The code for polling sysfs for memory-pressure events currently
runs on a separate thread. This patch implements this functionality
for the I/O thread. This unifies the code base a bit and also safes
some resources.