Add spinlock (probably move to less aggressive version later) to make sure release is sorted properly

release render properly (clean exit)