Fix potential concurrency issue for cloud project id. Change-Id: I42d5ee5f8f85a500e63bb37de89e69d5b575ffc7