Fixed pyface corruption issue, now a lock is assigned to every pif ace write