[PATCH 2/3] libelf: Fix possible unbounded stack usage in getphdr_wrlock.