As for the Stock or Ideal profiles imho they shouldn't be changed when lock happens. It's like automatic or manual mode. Selecting Stock or Ideal should be like manual mode - only changed manualy.
With Linux-powered N900..ANYTHING is possible