Store a lock association with job updates.

Bugs closed: AURORA-613

Reviewed at https://reviews.apache.org/r/24727/