hit.h: fix some potentially uninitialised variables

The assign() function that follows will attempt to find the size of the
string being passed as the target, which is not yet initialised.

Found with valgrind.
hit.h: free allocated mutex in the destructor.

Found with valgrind.
ebwt_search.cpp: free thread objects once we're done with them

Found using valgrind.