Only send a "add" uevent from add_device if running under preload

Add umockdev_in_mock_environment(). This function returns whether or not the
current process is running in a umockdev testbed environment.

Use this in add_device(), to fix error messages when loading devices from the
umockdev-run commandline.

Thanks to Chris Halse Rogers for his original patch!