benchmark atomic/vs lock locking