Add optional retry parameter to EventFlag wait()
am: f1aa0581d5

Change-Id: Ib1deb74426212e02773ccf32e3826a5fec870882