Add lockfile to library to ensure only one process can control GPIO at a time