Unfortunately, there is no other way to unlock it. You can either visit a local phone service shop to remove only the pattern lock, but that will cost you or you can perform a Master Reset which is recommended because the data files will be safe. The factory reset operation won't delete the custom files (music, videos, images, documents, etc), only the settings and applications.