Stellar Mass Growth of Brightest Cluster Galaxy Progenitors in COSMOS Since z ∼ 3