liblp: Use TMPDIR instead of P_tmpdir. am: a14f111377
am: 8cea677433

Change-Id: Ib86c67a0827545ab237d0ef8898ba304a33feb4d