start working threads and locking