queue size in metrics
allow proxy configuration out of the box (fix #196)
use weak references for lock keys