correct locking in stdio functions that tried to be lock-free
[musl] / crt / crti.c