Please see 21:5.
Ohr Hachaim tries to fit this idea to a jew wanting to serve G-d forever. It all works except for the bit where the slave is brought to the judges. How can this fit in? Additionally should he not follow this line of thinking throughout the Sedra. In 22:5 he gives another homiletical explanation which doesn’t follow through the verses.
Does Ohr Hachaim bring these explanations as Midrashic or does he think they are peshat?
According to this understanding, Elokim here is referring to the heavenly court, which will then rule that he should be given the opportunity to be called an Eved Neeman.