A while ago, I noticed a peculiar behavior with one of my custom SharePoint workflows. Tasks were getting locked out after the first edit. The first edit proceeds fine but when we attempt to edit the task a second time, we get an error like this:
This task is currently locked by a running workflow and cannot be edited.