Is there a way to prevent two instances of an activity from running at the same time?