This doesn't work with all brokers though. Some of them you actually have to tell them specifically not to use your shares. Placing them on a high order GTC doesn't work with TDA, not sure which others have the same policy.
Locking shares up does not stop them from being borrowed. The only shares that can be borrowed are in a margin account. Less than 1% of traders use a margin account on these junk OTC stock. Most brokers won’t even allow a margin account for these piles of crap. Feel free to lock them up but it doesn’t do anything since market makers can’t borrow retail shares anyway from a cash account