Inmate loses lawsuit to worship Flying Spaghetti Monster