umockdev-record: Support attributes in subdirs

The previous commit added support for mocking subdirectory attributes. This
provides the corresponding recording.

Thanks to evgeni for the initial patch!

https://github.com/martinpitt/umockdev/issues/41