egl: Make RefCount atomic