Do not loop flock()
Do not loop flock()

There's no need to loop until flock was successfully as flock() would simply
block till a previous lock has been released.
There's more to do to fix it properly, see my comments in the patch.

Reported-by: James Le Cuirot <eeeec1ec744a2cb217c028e8665d6d8c8d8c7ef4@aura-online.co.uk>
X-Gentoo-Bug: 360013
X-Gentoo-Bug-URL: https://bugs.gentoo.org/360013

dwfreed/openrc,OpenRC/openrc,williamh/openrc,OpenRC/openrc,dwfreed/openrc,williamh/openrc,dwfreed/openrc,williamh/openrc,OpenRC/openrc