allow event handlers to modify the observer from the callback
[inotify] refactor libc loading and improve error handling
Merge branch 'rlock'
fix fallback encoding. getfilesystemencoding() can be None.