Fix flash message shown when an account is inactive

https://www.openproject.org/work_packages/7149

Show different messages depending on whether the user is locked or
registered. In the latter case, also show different messages depending
on the self_registration setting (manual activation vs. mail).