Use thread-safe lgammaf_r

Instead of using lgammaf that relies on a global, use lgammaf_r.

b/17472355

Change-Id: I0502dcfe879297d3939a9566b37e50effcfac323
1 file changed