Fix Lockfile#trusted? bugs

:construction: 

This PR is a WIP for finding the really strange bugs in `Lockfile#trusted?`