made JustFLAC thread-safe