avdevice/decklink_enc: convert to std::atomic