in reply to Testing flock
One process works with test_lck.A, the other with test_lck.B, and neither ever does anything with test_lck (other than unlink) nor with the other process' file so, of course, they never see each other's data.