Abstract SetField functions with Transaction check

Abstracted several functions which set objects' fields with a check to
test whether transaction is active to determine one template argument,
this make more object modification operations support transaction.

Replaced some function calls with transaction checking version to
support clinit for app image to run under transaction.

Tests shows not breaking anything, testcase cover this situation will be
added shortly.

Test: make test-art-host -j64
Change-Id: Ic15a4428a7c7cce6832651e1894eb760354de009
5 files changed