client: fix meta1 timeouts and a memory leak

Change-Id: I1b3e069bfca183b186b42a36002f71a8f2f9f558
(cherry picked from commit 56fa88b8e8da97418d2022b201d177eb48fc023f)