gralloc: Fix race condition in gralloc

- Add mutex lock while accessing handles_map

Change-Id: Ibbe77e87020e655f6ebeb2428a13555460b3ac7d
CRs-Fixed:
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp
index 13757d6..687f3c1 100644
--- a/gralloc/gr_buf_mgr.cpp
+++ b/gralloc/gr_buf_mgr.cpp
@@ -373,6 +373,7 @@
 }
 
 Error BufferManager::Dump(std::ostringstream *os) {
+  std::lock_guard<std::mutex> buffer_lock(buffer_lock_);
   for (auto it : handles_map_) {
     auto buf = it.second;
     auto hnd = buf->handle;