Not sure that will "lock" them up. If you have a margin account and borrow money, then your broker may be able to lend your shares out without your knowledge. Other than that, I think they are legally obligated to ask you before they lend your shares out.
https://news.ycombinator.com/item?id=13670645...owing%20it.