Added test to reproduce bug when locking an account and trying to login after that.