This function locks the dock item.
When locked the dock item cannot be dragged around and it doesn't show a grip.
The dock item to lock.