I would infer from the question 'lock' means to protect a database object (perhaps with password) from certain users.
If this is the case I would suggest the thinking behind doing so is wrong, as it may infer the database is not form-driven, leaving users to happily use tables directly.