preload: Generalize wrapped_sockets to fdmap struct and API

So that we can use it for ioctls as well to track more than one fd at a time.
umockdev-run: Fix running of child program to keep stdin.