Frank,
It seems to me that using the app to regulate this "lock" is really not an effective security measure.
If the requirement is "5 failed attempts" and you're locked out, then yes - using the app to write to some other table will work on the surface.
However, if a malicious person isn't using the app and is instead just scripting or even using the console to attempt logins, then they will never write to this "lock" table. So, they will never get locked out.
I don't have the same security requirement as the OP. However, I can certainly see this as valuable under certain circumstances. This would fall in nicely as a feature along with Firebase's existing plans to give control of the authentication tables to the account owner.
Thanks,
Justin