mod/x11: improved display id detection

* check if unix socket for an display exits
* clean up x11 lock file and unix socket in case x11 wasn't shut down properly

fixes #45