Remove lock from metadata proxy, avoid deadlock in agent

Change-Id: I7d70010f75346189a4ddb3ff7bf717c55db0b757