Add implementation for ws_value_int type

Targets #69 
As discussed somewhere else, remove the locks completely.