Enable -Wconversion for thread.cc

This should help prevent bugs due to unexpected implicit integer
conversions.

Some collateral changes were needed as well to limit the number of casts
that had to be introduced.

Bug: 165843530
Test: m test-art-host-gtests
Change-Id: I091122827001ab335c7e140864f67cdf90fcf8b4
diff --git a/libartbase/base/utils.h b/libartbase/base/utils.h
index 4bcb915..66a5699 100644
--- a/libartbase/base/utils.h
+++ b/libartbase/base/utils.h
@@ -40,14 +40,14 @@
 }
 
 // Returns a human-readable size string such as "1MB".
-std::string PrettySize(int64_t size_in_bytes);
+std::string PrettySize(uint64_t size_in_bytes);
 
 // Splits a string using the given separator character into a vector of
 // strings. Empty strings will be omitted.
 void Split(const std::string& s, char separator, std::vector<std::string>* result);
 
 // Returns the calling thread's tid. (The C libraries don't expose this.)
-pid_t GetTid();
+uint32_t GetTid();
 
 // Returns the given thread's name.
 std::string GetThreadName(pid_t tid);