link to rdoc for #with_lock options