base library: RAII wrapper around Linux inotify

These unmerged merge sections need to be merged. As they are they break the build (http://jenkins.orlyatomics.com/job/orly-pr/130/console)