Add a stat that tracks the number of threads waiting for the storage lock.

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