Delete lock file and pid file before changing user