Only write the ipc port to the lock file when the ipc server is actually running