Does the UndockingDisabled key work for you?