layers: Handle 32-bit threading validation

Non-dispatchable handles are all of the same type using 32-bit pointers.
Use a single counter for uses of such handles in that situation.
1 file changed