More logging in free pool/function context.

Change-Id: I4264212359ba46e31cf42a7e4f531a34ca2e07df
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3288
Tested-by: jenkins
Reviewed-by: Nong Li <nong@cloudera.com>