tracker-extract-pdf: remove usage of non async-signal safe functions from signal handler

Fixes nasty crash that can occur.