Fix php error on task form. closes #2750
Fix locks. closes #2755