aaudio: fix uninitialized var in getBestTimestamp

The localPosition was used even if it was not set by another
function. Now we only use it if OK.

Bug: 77659012
Test: input_monitor.cpp -m1 -pn
Change-Id: I10648c5c17d42bb31d83fb14c1bda3ec527a3924
1 file changed