Fix error when running Ghost with a socket

fixes #2879
- Syncronously unlink old socket file