rtpendpoint: Protect use_ipv6 attribute from concurrent access

Change-Id: Ic1a4d2a5a09443470c7228a21f1ff4d925be6811