added per-thread lock wait timeout for sharding

not exposed as user command yet, but probably should

#1168