lock application