When locking the file descriptor skip_udev_partition_probe was not
handling errors thrown by fcntl.flock which was leading controller-0
to degraded state after unlock. This change aims to strengthen that
logic by handling the error properly, retrying the lock operation and
improving logs.
Closes-Bug: 1922256
Signed-off-by: Marcus Secato <marcus.viniciuscarvalhosecato@windriver.com>
Change-Id: I000367668744a4e92e20ff9d3f1f8cd717883a46