test-umockdev.c: Factorize determining #devices in udev
Add umockdev_testbed_{disable,enable}()

Add methods for temporarily disabling the emulated /sys and /dev. This can be
used for temporarily switching back to the real /sys and /dev without having to
destroy or change $UMOCKDEV_DIR and the UMockdevTestbed instance.