event_manager: Move short id generation out of transaction
event_manager: Move short id generation out of transaction

This has a tradeoff of not guaranteeing gapless ids, but should reduce
row lock contension for high volumes of groups within a project.

beeftornado/sentry,beeftornado/sentry,beeftornado/sentry