Fixed intermittent failure in the JoinSessionAsync test

The JoinSessionAsync test would report a failure if run multiple times with the
gtest_repeat option set. This was due to the fact that one of the test flags
was not being cleared as it should have been at the start of the test.

Change-Id: I577297eec23c46e87d98a39a258dcf5bc73d9954