Lock the process so that if a sample/post is happening then the other can't
Lock the process so that if a sample/post is happening then the other can't