This is a followup to the UBO/TexBO flagging changes, and fixes similar problems with atomic counter buffers. Patches 1 & 2 have been sent before, but in a series with a completely bogus final patch so didn't go anywhere. Patches 3 & 4 are new, and fix the new piglit test "arb_shader_atomic_counters-respecify-buffer" which I have just sent.