daemon: quiet spurious serial invalid lock complaints
daemon: quiet spurious serial invalid lock complaints

The enclosed lightly tested patch quiets some spurious serial invalid
lock complaints which occur on FreeBSD 8.1.

Changes:

 1) Skip "." and ".." when looking for locks.

 2) Requiring the pid in the lock file to be newline terminated is
    overly strict ... treat it as valid if it's the only thing in
    the file or if it's newline terminated.

Signed-off-by: Jarod Wilson <14059c7158912dcae849c377925c87d46da48cdf@redhat.com>

stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc