treating a file with an empty or zero hash as locked is not helpful. these are placeholdes for "hash is not known", thus treating them as a valid lock makes them completely useless (and confusing to users). fixes #1233 Change-Id: If42b47281e6973fc86662b973db69e26f6346f5a