Making management of pool-created texture & pixel buffer objects thread-safe by not using (semi) global variable to track them.