around seven this morning he had noticed that the front right leg of his bunk was loose , and since then he had been trying to unthread the bolts that held it to the floor and to the underside of the bedframe .