Make ws_value a lockable type

Blocks #97, #98, #99, #100