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)