mediaplayer: fix race condition with local media and bluetooth a2dp