Stability analysis of an equation with two delays and application to the production of platelets