fix lock handler when run by different OS users