Add isValidFragment to various lock settings

Change-Id: Ia79fd5e3c9f829b919c5f8f9abf6ecc606434f18