Removed redundant code in rcommon

There was a section is rcommon that was redundant when checking the lock files, it was removed