libraries: update atomic with internal modifications