Adverse possession doesn't apply to personal property, and even if it did, it requires that you be in possession of the property for a certain length of time. There's possibly an issue of "lost" versus "abandoned" property here, but the lock would probably give rise to a presumption that it's not abandoned.