SCHEMA-539. Improve lifecycle maintenance in Kiji classes

issue: https://jira.kiji.org/browse/SCHEMA-539

change state holder from atomic boolean to atomic reference of enum

add state checks to lifecycle objects where necessary

review: https://review.kiji.org/r/1175