Adding /locks endpoint to expose update locks.

Bugs closed: AURORA-346

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