Fix memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
malloc: additional unlink hardening for non-small bins [BZ #17344]

Turn two asserts into a conditional call to malloc_printerr.  The
memory locations are accessed later anyway, so the performance
impact is minor.
Move findidx nested functions to top-level.