Proper hashCode, toString, equals for ThreadLocalEntityManager

Change-Id: Ib840a67b2fb397ecd92d3d8381d163da52a78a83