A locked BIOS is a secure BIOS. Unfortunately, that means you are the only one who can truly lock yourself out.
A BIOS password, also known as a UEFI firmware password, is a security feature that prevents unauthorized access to the BIOS settings of a computer. It is a password that is stored in the BIOS chip and must be entered every time the computer is started or the BIOS settings are accessed.
On 840 G6 motherboard (reverse side, under black mylar):
: Available at the HP Client Management Solutions site. 2. HP SpareKey Recovery
Free for in-warranty business models. Out-of-warranty may require a fee (~$50–150 USD).