[ELF] Simplify SectionTable::getSymbolTableIndex. No functionality change.

MSVC 2012 raises an error in the lambda passed to vector::find_if, while it
seems valid code. Rewrote without high-order functions.