example6a working in serial; fails in parallel with deadlock