Updated Logging with Thread ID

md5sum a.out
b6a7d1d0116727d37dabc9f5d9a22816  a.out

This will make it easier to trace the double free crash since we'll be
able to better see the sequence of events that lead up to it.