libpftimers: release tid_to_exit lock earlier