preload: Harmonize and factor stat() type emulation for devices
preload: Harmonize and factor stat() type emulation for devices

Use the same approach as in commit 1f89d8e888b.

martinpitt/umockdev,martinpitt/umockdev,martinpitt/umockdev