Making gesture recognizer block to run on main thread