gpio: pcf857x: add lock and handle more chips