[PATCH] comedi: fix race between polling and detaching