Try harder to ignore stale lock files

When there is a stale lock file staying around, ignore it.
we want to also ignore pid files with invalid content
(like e.g. 0 byte sized files)
Merge pull request #789 from dirkmueller/release/roxy/master

+1