Kthreads with kfifo and locking mechanism