add basic threaded server support and switch erosion to use that
simple locking for safer link map writing