[BUGFIX] No thread deadlock on read, replaced sleep by thread-safe mutex