daemon: Fix behavior in read_pidfile() when pid file is not locked.