Changed position of mutex locking and unlocking to reduce calls to lock/unlock; added more threads