avoid race condition when updating p_admin pass and stackrc