[PATCH 0/2] Fix a few deadlocks with musl libc