The sale will lock in a sizable gain on stock purchased in December 2023.