don't do stuff before reaching a case you idiot
ported the lock-controls SEXP
reverted all FRED-related changes until I actually know what I'm doing
added parsing of is_harmless ship flag for convenience