How to create proper displacement for weld joints?
You said you wanted a to do this procedurally, but I personally would recommend using an image texture like this one. 

This image was created by me, and is in the public domain. Use it however you want :) Click for larger size


This displacement map produced a result like this: